home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19990422-19990725 / 000194_news@watsun.cc.columbia.edu _Mon Jun 21 13:48:55 1999.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@watsun.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id NAA00124
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Mon, 21 Jun 1999 13:48:55 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id NAA17551
  7.     for kermit.misc@watsun.cc.columbia.edu; Mon, 21 Jun 1999 13:30:58 -0400 (EDT)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: jaltman@watsun.cc.columbia.edu (Jeffrey Altman)
  10. Subject: Re: kerbang parameters not passed?
  11. Date: 21 Jun 1999 17:30:57 GMT
  12. Organization: Columbia University
  13. Message-ID: <7klssh$h4c$1@newsmaster.cc.columbia.edu>
  14. To: kermit.misc@watsun.cc.columbia.edu
  15.  
  16. In article <376E6B68.5B08EB3C@asares.com>,
  17. Brian Corcoran  <corcoran@asares.com> wrote:
  18. : Hi,
  19. : I'm trying to set up a c-kermit script to run from the command line
  20. : (using the #! notation), but I can't get parameters passed to it. I'm
  21. : using c-kermit 7.0.195 b7 on Linux 2.2.10.
  22. : For example, when I run the following script (kerbang-test.ksc hello
  23. : 1234) from the command line:
  24. : #!/usr/local/bin/kermit
  25. : echo begin
  26. : echo \%0
  27. : echo \%1
  28. : echo \%2
  29. : echo end
  30. : end
  31.  
  32. The kerbang script must look like:
  33.  
  34. #!/usr/local/bin/kermit +
  35. echo begin
  36. echo \%0
  37. echo \%1
  38. echo \%2
  39. echo end
  40. end
  41.  
  42. Notice the '+' after the path to the executable.
  43.  
  44.     Jeffrey Altman * Sr.Software Designer * Kermit-95 for Win32 and OS/2
  45.                  The Kermit Project * Columbia University
  46.               612 West 115th St #716 * New York, NY * 10025
  47.   http://www.kermit-project.org/k95.html * kermit-support@kermit-project.org